
<%
  /*
  This file is part of 1genia trampoline
  Copyright (C) 2007-2008 1genia (contact@1genia.com)

  This library is free software; you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; version 3 of the License.

  This library is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Library General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; see the file COPYING.TXT.  If not,
  write to the Free Software Foundation, Inc., 51 Franklin Street,
  Fifth Floor, Boston, MA 02110-1301, USA.
   */
%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/unstandard-1.0"
	prefix="u"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.1genia.com/trampoline" prefix="gtr"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<u:useConstants var="constants"
	className="com.genia.toolbox.config.autoconfiguration.web.constants.Messages" />
<gtr:html xmlns="http://www.w3.org/1999/xhtml">
<gtr:head>
	<c:import url="htmlHeader.jsp" />
</gtr:head>
<gtr:body>
	<div id="cadre"><c:import url="header.jsp" />
	<div id="content">

	<div id="title">
	<h1><fmt:message key="${constants.JSP_DATABASE_HEADING}" /></h1>
	<h3><fmt:message key="${constants.JSP_STEP}" /> ${currentPage}/${nbPages}</h3>
	</div>
	<div id="middleContent"><form:form acceptCharset="utf-8"
		method="POST" commandName="configurationCommand">
		<form:errors path="*" cssClass="errorBox" />
		<table>

			<tr>
				<td><fmt:message key="${constants.JSP_DATABASE_DRIVER_LABEL}" />
				</td>
				<td><form:input path="databaseDriver" /></td>
			</tr>

			<tr>
				<td><fmt:message key="${constants.JSP_DATABASE_URL_LABEL}" />
				</td>
				<td><form:input path="databaseUrl" /></td>
			</tr>

			<tr>
				<td><fmt:message key="${constants.JSP_DATABASE_LOGIN_LABEL}" />
				</td>
				<td><form:input path="databaseLogin" /></td>
			</tr>

			<tr>
				<td><fmt:message key="${constants.JSP_DATABASE_PASSWORD_LABEL}" />
				</td>
				<td><form:input path="databasePassword" /></td>
			</tr>

			<tr>
				<td><fmt:message key="${constants.JSP_DATABASE_ENCRYPTED_LABEL}"/>
				</td>
				<td>
				<form:checkbox path="encrypted"/></td>
			</tr>

			<tr>
				<td><fmt:message
					key="${constants.JSP_DATABASE_SCHEMA_UPDATE_LABEL}" /></td>
				<td><form:checkbox path="schemaUpdate" /></td>
			</tr>

			<tr>
				<td colspan="3"><input type="submit" name="_eventId_next"
					value="<fmt:message key="${constants.JSP_NEXT_BUTTON}" />"
					class="buttonImg" /></td>
			</tr>
		</table>
	</form:form></div>
	</div>
	<c:import url="footer.jsp" /></div>
</gtr:body>
</gtr:html>
